class Cat:
  def __init__(self,name):
      self.name=name
  @classmethod
  def speak(cls):
      print('miao miao miao')
  def miao(self):
    print('miao--------')
cat=Cat('mimi')
print(cat.name)
cat.miao()
#print(Cat.name) 实例属性不能通过类名来
#Cat.miao(self)
Cat.speak()
